# 创建fixture固件
import pytest

@pytest.fixture(scope='function',params=["登录成功","登录失败"])
def exe_sql(request):
    print("执行sql语句")
    yield request.param
    print("用例之后，关闭sql")
